package com.youme.model.param

import com.google.gson.Gson
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody
import retrofit2.http.Field

/**
 * Time:3/20/21 10:33 PM
 * Author:
 * Description:
 */
data class ParamCateen(
    @Field("lat") val lat: Double,
    @Field("lng") val lng: Double,
    @Field("sort") val sort: Int,
    @Field("type") val type: Int
) {
    fun toBody(): RequestBody = RequestBody.create("application/json".toMediaType(), Gson().toJson(this))
}
